package com.yupi.project.mapper;

import com.yupi.project.model.entity.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
* @author Dell
* @description 针对表【book(预订记录)】的数据库操作Mapper
* @createDate 2025-07-01 10:00:08
* @Entity com.yupi.project.model.entity.Book
*/
public interface BookMapper extends BaseMapper<Book> {

    @Select("select * from book where updateTime >= #{minUpdateTime} and visitorId = #{visitorId}")
    List<Book> listBookTimes(Date minUpdateTime, Long visitorId);
}




